<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/jquery.min.js"></script>
    <title>Document</title>
    <style>
        div {
            width: 400px;
            height: 50px;
            background-color: antiquewhite;
            text-align: center;
            line-height: 50px;
        }
    </style>
</head>

<body>
    <button> 显示当前时间</button>
    <div>
        某个时间
    </div>
</body>
<script>
    $(document).ready(function () {
        $('button').click(function () {
            $('div').text(new Date().toLocaleString())
        })
    })
</script>
</html>